package com.financing.platform.service.impl;

import java.sql.SQLException;
import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import com.financing.platform.dao.ILicaishiManagerUserDao;
import com.financing.platform.dto.LicaishiManagerUserDTO;
import com.financing.platform.service.ILicaishiManagerUserService;
import com.financing.platform.vo.LicaishiManagerUserVO;

@Service("licaishiManagerUserServiceImpl")
@Transactional
public class LicaishiManagerUserServiceImpl implements ILicaishiManagerUserService {

	@Autowired
	private ILicaishiManagerUserDao LicaishiManagerUserDaoImpl;
	
	@Override
	public int addLicaishiManagerUser(LicaishiManagerUserDTO user) throws SQLException {
		return LicaishiManagerUserDaoImpl.addLicaishiManagerUser(user);
	}

	@Override
	public int deleteLicaishiManagerUser(LicaishiManagerUserVO user) throws SQLException {
		return LicaishiManagerUserDaoImpl.deleteLicaishiManagerUser(user);
	}

	@Override
	public List<LicaishiManagerUserVO> queryLicaishiManagerUsers(LicaishiManagerUserVO user) throws SQLException {
		return LicaishiManagerUserDaoImpl.queryLicaishiManagerUsers(user);
	}

	@Override
	public int queryLicaishiManagerUsersCount(LicaishiManagerUserVO user) throws SQLException {
		return LicaishiManagerUserDaoImpl.queryLicaishiManagerUsersCount(user);
	}

	@Override
	public List<LicaishiManagerUserVO> queryNotLicaishiManagerUsers(LicaishiManagerUserVO user) throws SQLException {
		return LicaishiManagerUserDaoImpl.queryNotLicaishiManagerUsers(user);
	}
	
	@Override
	public int queryNotLicaishiManagerUsersCount(LicaishiManagerUserVO user) throws SQLException{
		return LicaishiManagerUserDaoImpl.queryNotLicaishiManagerUsersCount(user);
	}

}
